import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/adopt/model/xin_he_adopt_tree_model_entity.dart';

XinHeAdoptTreeModelEntity $XinHeAdoptTreeModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeAdoptTreeModelEntity xinHeAdoptTreeModelEntity = XinHeAdoptTreeModelEntity();
	final int? adoptedYear = jsonConvert.convert<int>(json['adoptedYear']);
	if (adoptedYear != null) {
		xinHeAdoptTreeModelEntity.adoptedYear = adoptedYear;
	}
	final int? consumerGoldRedEnvelope = jsonConvert.convert<int>(json['consumerGoldRedEnvelope']);
	if (consumerGoldRedEnvelope != null) {
		xinHeAdoptTreeModelEntity.consumerGoldRedEnvelope = consumerGoldRedEnvelope;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		xinHeAdoptTreeModelEntity.createTime = createTime;
	}
	final int? fCreateUserId = jsonConvert.convert<int>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeAdoptTreeModelEntity.fCreateUserId = fCreateUserId;
	}
	final int? fUpdateUserId = jsonConvert.convert<int>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeAdoptTreeModelEntity.fUpdateUserId = fUpdateUserId;
	}
	final String? iconPath = jsonConvert.convert<String>(json['iconPath']);
	if (iconPath != null) {
		xinHeAdoptTreeModelEntity.iconPath = iconPath;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeAdoptTreeModelEntity.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeAdoptTreeModelEntity.name = name;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		xinHeAdoptTreeModelEntity.price = price;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeAdoptTreeModelEntity.remark = remark;
	}
	final int? removed = jsonConvert.convert<int>(json['removed']);
	if (removed != null) {
		xinHeAdoptTreeModelEntity.removed = removed;
	}
	final int? teaOilCard = jsonConvert.convert<int>(json['teaOilCard']);
	if (teaOilCard != null) {
		xinHeAdoptTreeModelEntity.teaOilCard = teaOilCard;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		xinHeAdoptTreeModelEntity.updateTime = updateTime;
	}
	final int? versionNum = jsonConvert.convert<int>(json['version_num']);
	if (versionNum != null) {
		xinHeAdoptTreeModelEntity.versionNum = versionNum;
	}
	final int? yunChaSeed = jsonConvert.convert<int>(json['yunChaSeed']);
	if (yunChaSeed != null) {
		xinHeAdoptTreeModelEntity.yunChaSeed = yunChaSeed;
	}
	final int? num = jsonConvert.convert<int>(json['num']);
	if (num != null) {
		xinHeAdoptTreeModelEntity.num = num;
	}
	return xinHeAdoptTreeModelEntity;
}

Map<String, dynamic> $XinHeAdoptTreeModelEntityToJson(XinHeAdoptTreeModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['adoptedYear'] = entity.adoptedYear;
	data['consumerGoldRedEnvelope'] = entity.consumerGoldRedEnvelope;
	data['createTime'] = entity.createTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	data['iconPath'] = entity.iconPath;
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['price'] = entity.price;
	data['remark'] = entity.remark;
	data['removed'] = entity.removed;
	data['teaOilCard'] = entity.teaOilCard;
	data['updateTime'] = entity.updateTime;
	data['version_num'] = entity.versionNum;
	data['yunChaSeed'] = entity.yunChaSeed;
	data['num'] = entity.num;
	return data;
}